<?php
require_once('urllogin_client.php');

/*
 * url格式: http://domain/urllogin.php?user=用户名&time=时间戳&remark=备注&api=API名称&sign=签名
 * 签名格式：签名=md5(用户名+时间戳+API名称+API密钥);
 */
$test_user='zym';
$test_time=time();
$test_remark='';
$url="http://localhost:88/6kbbs/api/urllogin_server.php?user={$test_user}&time={$test_time}&remark={$test_remark}&api=".API_NAME."&sign=".getSign($test_user, $test_time, $test_remark);
echo("<a href='{$url}' target='_blank'>{$url}</a>");
?>